package com.general;
/**
 * @description:    上下文环境
 * @author:         cong zhi
 * @createDate:     2022/5/15 14:52
 * @updateUser:     cong zhi
 * @updateDate:     2022/5/15 14:52
 * @updateRemark:   修改内容
 * @version:        v1.0
 */
public class Context {

    private Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    public void algorithm() {
        this.strategy.algorithm();
    }
}
